Vertex calls

There are calls which we term 'vertex calls' which simply specify a point in 4D, 3D or 2D. These calls take an array which specifies the coordinates of the point. The interpretation of these points is described below.

void v4d
(double v[4])
Specify a vertex(point) in 4D using double precision numbers.

void v4f
(float v[4])
Specify a vertex(point) in 4D using single precision floating point numbers.

void v4i
(long v[4])
Specify a vertex(point) in 4D using integer numbers

void v4s
(short v[4])
Specify a vertex(point) in 4D using short integer numbers

There are also equivalent calls for 3D points (v3d, v3f, v3i, v3s) and 2D points (v2d, v2f, v2i, v2s). The only difference is the number of elements that each vertex needs to be specified. It should also be noted the the different data types (ie. double, float, long and short) are merely different ways of representing the same basic coordinate data (calling v3s with v[] = {100,200,200} is the same as calling v3f with v[] = {100.0, 200.0, 200.0}).

The way these points are interpreted depends on what mode has be set up with one of the calls bgnpoint, bgnline, bgnclosedline or bgnpolygon.

void bgnpoint
()
The bgnpoint call specifies that the next series of vertex calls are specifying a chain of points (dots) to be drawn.

void endpoint
()
A bgnpoint is terminated with a endpoint call.

void bgnline
()
The bgnline call specifies that the next series of vertex calls are specifying the points on a polyline.

void endline
()
A bgnline is terminated with a endline call.

void bgnclosedline
()
The bgnclosedline call is similar to the bgnline except that when endclosedline is called the first point given (ie. the one first after the bgnclosedline call) is joined to the last point given (ie. the one just before the endclosedline call).

void endclosedline
()
A bgnclosedline is terminated with a endline call.

void bgnpolygon
()
The bgnpolygon call specifies that the next series of vertex calls are defining a polygon.

void endpolygon
()
When endpolygon is called, the polygon is closed and filled (or drawn as an outline depending on the mode that has been set with the polymode call if this call has been compilied into the library.